dbe85e554a5119feb6cdf6996c7908b69c48e972,fabric/fabric-core-agent-jclouds/src/main/java/org/fusesource/fabric/service/jclouds/modules/ZookeeperCredentialStore.java,ZookeeperBacking,remove,#Object#,200

Before Change


                    if (credentials == null) {
                        credentials = get(o);
                    }
                    zookeeper.deleteWithChildren(ZkPath.CLOUD_NODE_IDENTITY.getPath(normalizeKey(o)));
                    zookeeper.deleteWithChildren(ZkPath.CLOUD_NODE_CREDENTIAL.getPath(normalizeKey(o)));
                } catch (Exception e) {
                    LOGGER.warn("Failed to remove jclouds credentials to zookeeper.", e);

After Change


                        credentials = get(o);
                    }
                    String normalizedKey = normalizeKey(o);
                    if (zookeeper.exists(ZkPath.CLOUD_NODE_IDENTITY.getPath(normalizedKey)) != null) {
                        zookeeper.deleteWithChildren(ZkPath.CLOUD_NODE_IDENTITY.getPath(normalizedKey));
                    }
                    if (zookeeper.exists(ZkPath.CLOUD_NODE_CREDENTIAL.getPath(normalizedKey)) != null) {
                        zookeeper.deleteWithChildren(ZkPath.CLOUD_NODE_CREDENTIAL.getPath(normalizedKey));